package com.example.service;

import com.example.mapper.UserInfoMapper;
import com.example.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-07-23
 * Time: 21:06
 */
@Service
public class UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    /**
     * 根据用户名查询用户信息
     * @param userName
     * @return
     */
    public UserInfo queryUserInfoByUserName(String userName)
    {
        return userInfoMapper.queryUserInfoByUserName(userName);
    }
}
